uniphier: fix base address of IO block buffer
authorMasahiro Yamada <[email protected]>
Tue, 19 Dec 2017 16:30:08 +0000 (01:30 +0900)
committerMasahiro Yamada <[email protected]>
Wed, 20 Dec 2017 03:33:01 +0000 (12:33 +0900)
The current IO block buffer overlaps with BL2 image location.
So, BL2 may corrupt itself.

Signed-off-by: Masahiro Yamada <[email protected]>
plat/socionext/uniphier/include/platform_def.h

index b5dc16aa90c24ae432a8bbe717076051d5590b71..cc046eb40f723995e8c12f5a59ddbf017f7d0c79 100644 (file)
@@ -47,7 +47,7 @@
 #define BL32_LIMIT                     (UNIPHIER_SEC_DRAM_LIMIT)
 
 #define UNIPHIER_BLOCK_BUF_SIZE                0x00400000
-#define UNIPHIER_BLOCK_BUF_BASE                ((BL2_LIMIT) - \
+#define UNIPHIER_BLOCK_BUF_BASE                ((BL2_BASE) - \
                                         (UNIPHIER_BLOCK_BUF_SIZE))
 
 #define PLAT_PHY_ADDR_SPACE_SIZE       (1ULL << 32)